package com.pshcp.domain.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 医生文章信息表
 * </p>
 *
 * @author auto generator
 * @since 2022-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_doctor_article")
public class DoctorArticle implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private Long doctorId;

    /**
     * 科室ID
     */
    private Long deptId;

    /**
     * 医院ID
     */
    private String hospitalId;

    /**
     * 0图文1链接
     */
    private Integer type;

    /**
     * 内容
     */
    private String title;

    /**
     * 链接
     */
    private String link;

    /**
     * 内容
     */
    private String content;

    /**
     * 0个人+患者1科室+患者2全院3平台
     */
    private Integer visibleRange;

    /**
     * 0不是1是原创
     */
    private Integer originalFlag;

    /**
     * 封面
     */
    private String coverPath;

    /**
     * 0草稿1发布2下线
     */
    private Integer bizStatus;

    /**
     * 状态 0正常 1删除
     */
    private Integer status;
    /**
     * 发布时间
     */
    private Date publishTime;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updateTime;
}
